<%@page import="com.nuaa.domain.change.SupplyEntity"%>
<%@page import="com.nuaa.domain.change.ChangeEntity"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%
	String contextPath = request.getContextPath();
	ChangeEntity chanInfo = (ChangeEntity)request.getAttribute("chanInfo");
	SupplyEntity chanSupInfo = (SupplyEntity)request.getAttribute("chanSupInfo");
	String filePath = request.getAttribute("filePath").toString();
%>
<jsp:include page="/WEB-INF/jsp/common/fadeout.jsp"></jsp:include>
<style scoped="scoped">
        .textbox{
            height:20px;
            margin:0;
            padding:0 2px;
            box-sizing:content-box;
        }
    </style>
<style type="text/css">
	table{
		font-size:25;
		font-family:sans-serif;
	}
	table tr td{
		align:left;
	}
</style>
<div id="chan_detail" class="easyui-layout" data-options="fit:true">  
<div data-options="region:'center',split:false" style="padding:10px;">
	<table align="center">
		<tr><td colspan="6" style="text-align:center;color:blue;font-weight:bold">订单明细</td></tr>
		<tr></tr>
		<tr>
			<td>订单编号</td>
			<td>&nbsp;<%=chanInfo.getOrder_no()%></td>
			<td></td>
			<td></td>
			<td>客户编号</td>
			<td>&nbsp;<%=chanInfo.getCustomer_no()%></td>
		</tr>
		<tr>
			<td>订单业务类型</td>
			<td>&nbsp;<%=chanInfo.getBusiness_type()%></td>
			<td></td>
			<td></td>
			<td>下单时间</td>
			<td>&nbsp;<%=chanInfo.getCreate_tm()%></td>
		</tr>
		<tr>
			<td>订单邮费</td>
			<td>&nbsp;<%=chanInfo.getPostage()==null?"未指定":chanInfo.getPostage()%></td>
			<td></td>
			<td></td>
			<td>订单人工费</td>
			<td>&nbsp;<%=chanInfo.getLaborFee()==null?"未指定":chanInfo.getLaborFee()%></td>
		</tr>
		<tr>
			<td>订单状态</td>
			<td>&nbsp;
				<%
					int value = chanInfo.getState();
				if(value==0)
	    			 out.print("待审核");
	    		 else if(value==1)
	    			 out.print("审核中");
	    		 else if(value==2)
	    			 out.print("收货中");
	    		 else if(value == 3)
	    			 out.print("换标中");
	    		 else if(value==4)
	    			 out.print("待付款");
	    		 else if(value==5)
	    			 out.print("发货中");
	    		 else if(value==6)
	    			 out.print("完成中");
	    		 else
	    			 out.print("状态出错");
				%>
			</td>
			<td></td>
			<td></td>
			<td></td>
			<td>&nbsp;</td>
		</tr>
		
		<tr>
			<td>需更换的SKU种数</td><td>&nbsp;<%=chanInfo.getSku_type_numbers()%></td>
			<td></td>
			<td></td>
			<td>产品总数量</td><td>&nbsp;<%=chanInfo.getPro_total()%></td>
		</tr>
		<tr></tr>
		<tr></tr>
		<tr>
			<td>平均尺寸</td>
			<td  colspan="5">&nbsp;长&nbsp; <%=chanInfo.getPro_length()%>
				&nbsp;&nbsp;&nbsp;宽
			     &nbsp;<%=chanInfo.getPro_width()%>&nbsp;&nbsp;&nbsp;
			       高&nbsp;<%=chanInfo.getPro_height()%>&nbsp;&nbsp;&nbsp;(单位：inch)</td>
		</tr>
		<tr></tr>
		<tr></tr>
		<tr>
			<td>产品平均重量</td><td>&nbsp;<%=chanInfo.getPro_ave_weight()%> &nbsp;LB</td>
			<td></td>
			<td></td>
			<td>发货总箱数</td><td>&nbsp;<%=chanInfo.getBox_total()%> </td>
		</tr>
		<tr><td colspan="6"><hr/></td></tr>
		<tr><td colspan="6" style="text-align:center;color:blue;font-weight:bold">所上传补充材料</td></tr>
		<tr></tr>
		
		<tr>
			<td>移除货物物流订单</td>
			<td align="center">
				<% if(chanSupInfo != null && chanSupInfo.getRemove_order_name()!=null&& !chanSupInfo.getRemove_order_name().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+chanSupInfo.getRemove_order_name()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
			<td></td>
			<td></td>
			<td>新旧条码换标对照表</td>
			<td align="center">
				<% if(chanSupInfo != null && chanSupInfo.getNew_old_name()!=null&& !chanSupInfo.getNew_old_name().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+chanSupInfo.getNew_old_name()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
		<tr>
			<td>新的条码</td>
			<td align="center">
				<% if(chanSupInfo != null && chanSupInfo.getNew_barcode_name()!=null&& !chanSupInfo.getNew_barcode_name().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+chanSupInfo.getNew_barcode_name()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
			<td></td>
			<td></td>
			<td>外箱标签</td>
			<td align="center">
				<% if(chanSupInfo != null && chanSupInfo.getOut_tip_name()!=null&& !chanSupInfo.getOut_tip_name().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+chanSupInfo.getOut_tip_name()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
		<tr>
			<td>其它文档资料1</td>
			<td align="center">
				<% if(chanSupInfo != null && chanSupInfo.getOther_file()!=null&& !chanSupInfo.getOther_file().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+chanSupInfo.getOther_file()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
			<td></td>
			<td></td>
			<td>其它文档资料2</td>
			<td align="center">
				<% if(chanSupInfo != null && chanSupInfo.getOther_file2()!=null&& !chanSupInfo.getOther_file2().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+chanSupInfo.getOther_file2()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
		<tr>
			<td>其它文档资料3</td>
			<td align="center">
				<% if(chanSupInfo != null && chanSupInfo.getOther_file3()!=null&& !chanSupInfo.getOther_file3().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+chanSupInfo.getOther_file3()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
			<td></td>
			<td></td>
			<td>其它文档资料4</td>
			<td align="center">
				<% if(chanSupInfo != null && chanSupInfo.getOther_file4()!=null&& !chanSupInfo.getOther_file4().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+chanSupInfo.getOther_file4()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
		<tr><td colspan="6"><hr/></td></tr>
		<tr><td colspan="6" style="text-align:center;color:blue;font-weight:bold">管理员上传文档</td></tr>
		<tr>
			<td>收货统计表</td>
			<td align="center">
				<% if(chanInfo != null && chanInfo.getRec_tab_name()!=null&&!chanInfo.getRec_tab_name().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+chanInfo.getRec_tab_name()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
			<td></td>
			<td></td>
			<td>到货数量统计表</td>
			<td align="center">
				<% if(chanInfo != null && chanInfo.getArr_tab_name()!=null&&!chanInfo.getArr_tab_name().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+chanInfo.getArr_tab_name()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
		<tr>
			<td>换标完成发货数量表</td>
			<td align="center">
				<% if(chanInfo != null && chanInfo.getChan_fini_number_name()!=null&&!chanInfo.getChan_fini_number_name().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+chanInfo.getChan_fini_number_name()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
			<td></td>
			<td></td>
			<td>装箱表</td>
			<td align="center">
				<% if(chanInfo != null && chanInfo.getPack_tab_name()!=null&& !chanInfo.getPack_tab_name().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+chanInfo.getPack_tab_name()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
		<tr>
			<td>换标费用和邮费表</td>
			<td align="center">
				<% if(chanInfo != null && chanInfo.getChan_fee_tab_name()!=null&& !chanInfo.getChan_fee_tab_name().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+chanInfo.getChan_fee_tab_name()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
			<td></td>
			<td></td>
			<td>发货物流单号表</td>
			<td align="center">
				<% if(chanInfo != null && chanInfo.getLogis_tab_name()!=null&& !chanInfo.getLogis_tab_name().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+chanInfo.getLogis_tab_name()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
		<tr>
			<td>换标表格模版</td>
			<td align="center">
				<% if(chanInfo != null && chanInfo.getChan_model_name()!=null&& !chanInfo.getChan_model_name().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+chanInfo.getChan_model_name()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
			<td></td>
			<td></td>
			<td>其它文档1</td>
			<td align="center">
				<% if(chanInfo != null && chanInfo.getOther_file1()!=null&& !chanInfo.getOther_file1().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+chanInfo.getOther_file1()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
		<tr>
			<td>其它文档2</td>
			<td align="center">
				<% if(chanInfo != null && chanInfo.getOther_file2()!=null&& !chanInfo.getOther_file2().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+chanInfo.getOther_file2()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
			<td></td>
			<td></td>
			<td>其它文档3</td>
			<td align="center">
				<% if(chanInfo != null && chanInfo.getOther_file3()!=null&& !chanInfo.getOther_file3().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+chanInfo.getOther_file3()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
		<tr>
		<td>其它文档4</td>
			<td align="center">
				<% if(chanInfo != null && chanInfo.getOther_file4()!=null&& !chanInfo.getOther_file4().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+chanInfo.getOther_file4()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
	</table>
</div>
</div>

